package progetto6.jade;

import java.util.Random;

public class RandomStrategy extends ScoreIndependentStrategy{
	
	private static final long serialVersionUID = 1L;
	private Random random = new Random();

	@Override
	public Choice getNext() {
		double r = random.nextDouble();
		if(r > 0.5){
			lastChoice = Choice.C;
		}else{
			lastChoice = Choice.D;
		}
		return lastChoice;
	}
	
	@Override
	public String toString(){
		return "RandomStrategy";
	}
}
